package com.leancloud.circle.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.leancloud.circle.R;

import tech.com.commoncore.manager.GlideManager;

public class PhotoAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public PhotoAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ImageView imageView = helper.itemView.findViewById(R.id.photo_item_img);
        GlideManager.loadImg(item, imageView);
    }
}
